﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AgCIMProductFuncLib
{
    /// <summary>
    /// 坐标模型
    /// </summary>
    public class Coordinate
    {
        public double X { get; set; }
        public double Y { get; set; }

        internal void ScaleToWidth(double minx, double maxY, double scale)
        {
            X = (X - minx) * scale + 100;
            Y = (maxY - Y) * scale + 100;
        }
    }
}
